package A与java区别

Person stu = new Person()
stu.setUsername("小明")
println stu.getUsername()


stu.age = 12
stu.setAge(1)

// 调用默认带有具名构造器
def person = new Person(username: "张三2", email: "menin@163.com", age: 18)
println person.getUsername()